﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="agreement.aspx.cs" Inherits="EWDTAssignment.agreement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
   
    <script type="text/javascript">
            var leftSecond = 10;
            var interalID;
            function countDown() {
                var btnReg = document.getElementById("<%=Register.ClientID%>");
                var chkbox = document.getElementById("<%=AgreementCheckbox.ClientID%>");
                if (btnReg) {
                    if (leftSecond <= 0) {
                        if (chkbox.checked == false) {
                            btnReg.value = "Waiting for you decision";
                        }
                        else {
                            btnReg.value = "Register";
                            btnReg.disabled = false;
                            clearInterval(interalID);
                        }
                    }
                    else {
                        btnReg.value = "Please read the agreement(left with " + leftSecond + " seconds)";
                        leftSecond--;
                    }
                }
            }
            interalID = setInterval("countDown()", 1000);
        
    </script>
    <style type="text/css">

        #TextArea1
        {
            height: 246px;
            width: 859px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <p>
        <asp:Label ID="Label1" runat="server" BorderStyle="Groove" 
            Text="TecHawk Registration Agreement"></asp:Label>
    </p>
    <p>
        <textarea id="Agreement" name="S1" style="width: 546px; height: 254px;">
            This TecHawk Agreement contains the terms and conditions that govern your access to and use of the Service Offerings (as defined below) and is an agreement between TecHawk Web Services and you or the entity you represent. This Agreement takes effect when you click an “I Accept” button or check box presented with these terms or, if earlier, when you use any of the Service Offerings. You represent to us that you are lawfully able to enter into contacts. If you are entering into this Agreement for an entity, such as the company you work for, you represent to us that you have legal authority to bind that entity. Please see Section 14 for definitions of certain capitalized terms used in this Agreement.
        </textarea></p>
    <p>
        <asp:CheckBox ID="AgreementCheckbox" runat="server" 
            Text="I Accept the Registration Agreement" />
    </p>
    <p>
        <asp:Button ID="Register" runat="server" Enabled="False" 
            onclick="Register_Click" Text="Register" Width="283px" />
    </p>
</asp:Content>
